<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="{ADMIN_THEME}images/reset.css" rel="stylesheet" type="text/css" />
<link href="{ADMIN_THEME}images/system.css" rel="stylesheet" type="text/css" />
<link href="{ADMIN_THEME}images/dialog.css" rel="stylesheet" type="text/css" />
<link href="{ADMIN_THEME}images/main.css" rel="stylesheet" type="text/css" />
<link href="{ADMIN_THEME}images/switchbox.css" rel="stylesheet" type="text/css" />
	{template admin/top.html}
<link href="{ADMIN_THEME}luos/css/style.min.css?v=4.1.0" rel="stylesheet"><link href="{ADMIN_THEME}images/table_form.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{ADMIN_THEME}js/jquery.min.js"></script>
<script type="text/javascript" src="{ADMIN_THEME}js/dialog.js"></script>
<title>admin</title>
</head>
<body style="font-weight: normal;">
<div class="subnav">
	<div class="content-menu ib-a blue line-x">
		<a href="{url('admin/member/pms/')}" class="on"><em>{lang('a-mem-57')}</em></a><span>|</span>
		<a href="{url('admin/member/pms/', array('type'=>'send'))}"><em>{lang('a-mem-58')}</em></a>
	</div>
	<div class="bk10"></div>
	<div class="table-responsive mytable">
		<form action="" method="post" name="myform">
		<table width="100%" class="table table-striped">
		<thead>
		<tr>
			<th width="20" align="right"><input name="deletec" id="deletec" type="checkbox" onClick="setC()"></th>
			<th width="330" align="left">{lang('a-mem-59')}</th>
			<th width="80" align="left">{lang('a-mem-60')}</th>
			<th width="90" align="left">{lang('a-mem-61')}</th>
			<th width="155" align="left">{lang('a-mem-62')}</th>
			<th align="left">{lang('a-mem-63')}</th>
		</tr>
		</thead>
		<tbody>
		{loop $list $t}
		<tr height="25">
			<td align="right"><input name="ids[]" type="checkbox" class="deletec" value="{$t[id]}"></td>
			<td align="left"> <a href="{url('admin/member/pms',array('type'=>'show','id'=>$t['id']))}">{$t['title']}</a></td>
			<td align="left">{$t['sendname']}</td>
			<td align="left">{$t['toname']}</td>
			<td align="left">{date(TIME_FORMAT, $t['sendtime'])}</td>
			<td align="left">{php echo $t['isadmin'] ? lang('a-mem-64') : lang('a-mem-65');}</td>
		</tr>
		{/loop}
		<tr height="25">
			<td colspan="99" align="left">
			<input type="submit" class="btn btn-success btn-sm" value="{lang('a-del')}" name="submit" onclick="return confirm_del()">&nbsp;
			</td>
		</tr>
		</table>
		{$pagelist}
		</form>
	</div>
</div>
<script type="text/javascript">
function confirm_del() {
    if (confirm('{lang('a-confirm')}')) { 
	    document.myform.submit();
		return true; 
	} else {
	    return false;
	}
}
function setC() {
	if($("#deletec").attr('checked')) {
		$(".deletec").attr("checked",true);
	} else {
		$(".deletec").attr("checked",false);
	}
}
</script>
</body>
</html>